package com.haoshui.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.haoshui.domain.entity.Role;

import java.util.List;

/**
 * 角色信息表(SysRole)表服务接口
 *
 * @author makejava
 * @since 2022-09-30 20:16:52
 */
public interface RoleService extends IService<Role> {

    List<String> selectRoleKeyByUserId(Long userId);

    Page<Role> findRole(Integer pageNum, Integer pageSize, String roleName, String status);

    boolean changeStatusById(Long roleId, String status);

    Long addRole(Role role);

    List<Role> listAllRole();

    List<Role> getAllRoles();
}
